package com.example.dw.util;

public class LogicFormulaMethods {

    public static Boolean and(Boolean a, Boolean b) {
        return a && b;
    }

    public static Boolean or(Boolean a, Boolean b) {
        return a || b;
    }

    public static Boolean not(Boolean a) {
        return !a;
    }

    public static Boolean ifThenElse(Boolean condition, Object thenValue, Object elseValue) {
        return (Boolean) (condition ? thenValue : elseValue);
    }
}
